package com.tj.shopping.mapper;

import com.tj.shopping.entity.Carts;
import com.tj.shopping.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: IntelliJ IDEA
 * @description:
 * @author: H
 * @create: 2023-12-20 15:33
 */
public interface ShoppingCartMapper {

    List<Map<String,Object>>finds(Map<String,Object>map);
    List<Map<String,Object>>findOne(Map<String,Object>map);
    int total(Map<String,Object>map);
    int Remove(@Param("uno")int uno, @Param("gdno")int gdno);
    int deleteAll(Map<String,Object>map);
    int addNum(Carts carts);
    boolean addshoppingcart(Map<String,Object> map);

    int  carttotal(Map<String,Object>map);

    Carts selectCart(int cno);

    int RemoveByCno(int cno);
}



